package com.qys.livesMall.open.modal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 系统信息
 * </p>
 *
 * @author wzy
 * @since 2023-07-11
 */
@Getter
@Setter
@TableName("h2_open_sys_message")
@Schema(name = "H2OpenSysMessage", description = "系统信息")
public class H2OpenSysMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "消息类型  0代表透传消息(使用这个，需要手机自己弹出通知，定义通知样式，content为json串)  1代表是通知(使用这个，标题和内容即手机上显示的通知标题和内容)")
    private Integer messageType;

    @Schema(description = "消息来源")
    private String source;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "创建人")
    private String creator;

    @Schema(description = "是否删除")
    @TableLogic
    private Byte deleted;

    @Schema(description = "接收类型 ：0 全部、1  指定用户")
    private Integer receiveType;
}
